<?php

/* @project : Template
 * @auther  : 青云
 * @date    : 2018/1/10
 * @desc    : 系统设置模型
 */

namespace app\common\model;

class SystemConfigTab extends Base
{

    public function getListByType($type)
    {
        $where[] = ['type', 'eq', $type];
        $where[] = ['is_valid', 'eq', 1];
        $where[] = ['is_del', 'eq', 0];

        $list = $this->where($where)->select();
        return $list;
    }
}
